package com.czkt.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 流程管理对象 erp_process
 * 
 * @author ruoyi
 * @date 2024-05-24
 */
public class ErpProcess extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 流程名称 */
    @Excel(name = "流程名称")
    private String processName;

    /** 流程编码 */
    @Excel(name = "流程编码")
    private String processCode;

    /** 流程类型（1、请购单  2、采购单、3、采购入库 4、采购出库 5、销售单） */
    @Excel(name = "流程类型", readConverterExp = "1=、请购单,2=、采购单、3、采购入库,4=、采购出库,5=、销售单")
    private Long processType;

    /** 流程状态（0、未部署、1、已运行 2、已挂起、3、已激活 4、已删除） */
    @Excel(name = "流程状态", readConverterExp = "0=、未部署、1、已运行,2=、已挂起、3、已激活,4=、已删除")
    private Long processStatus;

    /** 流程文件 */
    @Excel(name = "流程文件")
    private String processFile;

    /** 流程bpmn文件 */
    @Excel(name = "流程bpmn文件")
    private String processXml;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setProcessName(String processName) 
    {
        this.processName = processName;
    }

    public String getProcessName() 
    {
        return processName;
    }
    public void setProcessCode(String processCode) 
    {
        this.processCode = processCode;
    }

    public String getProcessCode() 
    {
        return processCode;
    }
    public void setProcessType(Long processType) 
    {
        this.processType = processType;
    }

    public Long getProcessType() 
    {
        return processType;
    }
    public void setProcessStatus(Long processStatus) 
    {
        this.processStatus = processStatus;
    }

    public Long getProcessStatus() 
    {
        return processStatus;
    }
    public void setProcessFile(String processFile) 
    {
        this.processFile = processFile;
    }

    public String getProcessFile() 
    {
        return processFile;
    }
    public void setProcessXml(String processXml) 
    {
        this.processXml = processXml;
    }

    public String getProcessXml() 
    {
        return processXml;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("processName", getProcessName())
            .append("processCode", getProcessCode())
            .append("processType", getProcessType())
            .append("processStatus", getProcessStatus())
            .append("processFile", getProcessFile())
            .append("processXml", getProcessXml())
            .toString();
    }
}
